package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        /*
        student zs = new student("张三",25,"廊坊","jsd2302","001");


        zs.eat();
        zs.sayHi();
        zs.study();
        zs.sleep();

        Teacher ls = new Teacher("李四",35,"黄冈",1000000);

        ls.teach();
        ls.sayHi();

        Doctor ww = new Doctor("王五",65,"地藏","手术");

        ww.cut();*/
        Dog zs = new Dog("赵四",2,"黑色");
        zs.drink();
        zs.eat();
        zs.lookHomes();

        Chick ws = new Chick("文松",1, "黄色");
        ws.eat();
        ws.drink();
        ws.layEggs();

        Fish sxf = new Fish("宋晓峰",50, "红色");
        sxf.eat();

    }
}
